package com.superiron.scaffold.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.superiron.scaffold.dao.UserDao;
import com.superiron.scaffold.entity.UserEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：yzg
 * @date ：Created in 2022/9/6 10:45
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService{
	
	/**
	 * 按照姓名查询用户
	 *
	 * @param userName
	 *
	 * @return
	 */
	/**
	 * 按照姓名查询用户
	 *
	 * @param userName
	 *
	 * @return
	 */
	@Override
	public List<UserEntity> findAllByMobile(String mobile) {
		// LambdaQueryWrapper<UserEntity> where = Wrappers.lambdaQuery();
		// where.eq(UserEntity::getUserName, userName);
		// return this.list(where);
		
		return this.baseMapper.findAllByMobile(mobile);
	}
}
